//
//  WQMqttManager.h
//  MqttTest
//
//  Created by 魏强 on 16/12/29.
//  Copyright © 2016年 魏强. All rights reserved.
//

#import <Foundation/Foundation.h>
/*
 * MQTTClient: imports
 * MQTTSessionManager.h is optional
 */
#import <MQTTClient/MQTTClient.h>
#import <MQTTClient/MQTTSessionManager.h>

#import "Singleton.h"
@protocol WQMqttManagerDelegate <NSObject>
/**
 *  当接收到数据时会调用
 */
- (void)receiveData:(NSData *)data ontopic:(NSString *)topic;

@end

@interface WQMqttManager : NSObject<MQTTSessionManagerDelegate>
singleton_interface(WQMqttManager);
/**  <#Description#> */
@property (nonatomic, weak) id<WQMqttManagerDelegate> delegate;
@property (nonatomic, strong) MQTTSessionManager *manager;
//@property (nonatomic, assign, getter=isReset) BOOL reset;

- (void)connectToHost;
- (void)disconnect;
- (void)sendMessage:(NSString *)message;
@end
